#! -*- coding: utf-8 -*-

import py4d

o = py4d.Open4D()
o.InitNetworkComponent()
#o.Find4DServer('192.168.200.204')
o.Select4DServer()

o.connect('Super_Utilisateur','test')
print o.Server_CurrentDateTime()

t_number = o.get_filenumber('DEV_1_Devis')
f_numbers = o.get_fieldnumbers('DEV_1_Devis',['Numero','Client'])
o.SelectAllRecords(t_number)
result = o.get_selection(t_number,f_numbers)
print result

o.close()
